package com.example.blogserver.service;

import com.example.blogserver.a_utils.ResponseBodyMessage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings({"all"})
public interface LoginService {
    /**
     * 进行登录验证
     */
    ResponseBodyMessage<Boolean> checkOut(HttpServletRequest request,
                                          String account,
                                          String password,
                                          String verifyCode);

    /**
     * 进行图文验证码生成
     */
    void buildCheckImage(HttpServletRequest request, HttpServletResponse response);

    /**
     * 处理退出登录请求
     */
    ResponseBodyMessage<Boolean> loginOut(HttpServletRequest request);

}
